<!DOCTYPE html>
<html>
<head>
	<title>老虎机</title>
	<meta name="viewport" content="width=device-width,user-scalable=no" />
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
	<meta name="keywords" content="老虎机" />
	<meta name="description" content="老虎机" />
	<style type="text/css">
* { margin: 0; padding: 0 }
body, html { margin: 0; padding: 0; font-size: 12px; }
ul, li { list-style: none; margin: 0; padding: 0 }
body { background-color: #000; -webkit-tap-highlight-color: rgba(255, 255, 255, 0); max-width: 640px; margin: 0 auto; }
.lhj_topimg { width: 100%; }
.lhj_top { background-image: url(images/lhjtop_bg.jpg); background-size: cover; background-repeat: no-repeat; background-position: center; padding: 30px 0 10px 0; height: auto; overflow: hidden; height: 70px; }
.lhj_ns { width: 100%; height: 45px; background-image: url(images/ns.jpg); background-size: 100%  100%; background-repeat: no-repeat; background-position: center; color: #f8bc06; line-height: 45px; font-size: 12px; }
.marquee { margin-left: 12%; width: 80%; }
.lhj_con { position: relative; width: 100%; height: 250px; background-image: url(images/lhj_con.jpg); background-size: cover; background-repeat: no-repeat; background-position: center; }
.consumption{width: 60%; text-align: center; position: absolute; left: 20%; color: #f8bc06;font-size: 18px; bottom: 145px; opacity: 0; }
.consumption_xf{ animation: consumption 1s  ;-webkit-animation: consumption 1s  ;}
@keyframes consumption {
	0% { opacity: 0 ;bottom: 135px;transform:scale(1)}
	50% { opacity: 1 ;bottom: 160px; transform:scale(1.02)}
	100% { opacity: 0 ;bottom: 185px;transform:scale(1)}
}
@-webkit-keyframes consumption {
	0% { opacity: 0 ;bottom: 135px;-webkit-transform:scale(1)}
	50% { opacity: 1 ;bottom: 160px; -webkit-transform:scale(1.02)}
	100% { opacity: 0 ;bottom: 185px;-webkit-transform:scale(1)}
}
#run_up , #run_down { padding: 8px 0; }
 #run_left, #run_right { padding: 0 8px; }
#run_up li, #run_down li, #run_left li, #run_right li { width: 10px; height: 10px; float: left; background-color: #f5d968; border-radius: 50%; margin-left: 7.6%; box-shadow: #f5d968 0px 0px 10px; animation: deng 1s ease-in-out infinite; -webkit-animation: deng 1s ease-in-out infinite; -o-animation: deng 1s ease-in-out infinite; }
@keyframes deng {
	0% { background-color: #f56879; box-shadow:    0px 0px 20px 5px #f56879  }
	16% { background-color: #f568dc; box-shadow:   0px 0px 20px 5px #f568dc  }
	32% { background-color: #6b68f5; box-shadow:   0px 0px 20px 5px #6b68f5  }
	48% { background-color: #68f5f0; box-shadow:   0px 0px 20px 5px #68f5f0  }
	64% { background-color: #6bf568; box-shadow:   0px 0px 20px 5px #6bf568  }
	80% { background-color: #f5d968; box-shadow:   0px 0px 20px 5px #f5d968  }
	100% { background-color: #f56879; box-shadow:  0px 0px 20px 5px #f56879  }
}
@-webkit-keyframes deng {
	0% { background-color: #f56879; box-shadow:    0px 0px 20px 5px #f56879  }
	16% { background-color: #f568dc; box-shadow:   0px 0px 20px 5px #f568dc  }
	32% { background-color: #6b68f5; box-shadow:   0px 0px 20px 5px #6b68f5  }
	48% { background-color: #68f5f0; box-shadow:   0px 0px 20px 5px #68f5f0  }
	64% { background-color: #6bf568; box-shadow:   0px 0px 20px 5px #6bf568  }
	80% { background-color: #f5d968; box-shadow:   0px 0px 20px 5px #f5d968  }
	100% { background-color: #f56879; box-shadow:  0px 0px 20px 5px #f56879  }
}
#run_up li:nth-of-type(1) { animation-delay: .1s; -webkit-animation-delay: .1s; }
#run_up li:nth-of-type(2) { animation-delay: .2s; -webkit-animation-delay: .2s; }
#run_up li:nth-of-type(3) { animation-delay: .3s; -webkit-animation-delay: .3s; }
#run_up li:nth-of-type(4) { animation-delay: .4s; -webkit-animation-delay: .4s; }
#run_up li:nth-of-type(5) { animation-delay: .5s; -webkit-animation-delay: .5s; }
#run_up li:nth-of-type(6) { animation-delay: .6s; -webkit-animation-delay: .6s; }
#run_up li:nth-of-type(7) { animation-delay: .7s; -webkit-animation-delay: .7s; }
#run_up li:nth-of-type(8) { animation-delay: .8s; -webkit-animation-delay: .8s; }
#run_up li:nth-of-type(9) { animation-delay: .9s; -webkit-animation-delay: .9s; }
#run_right li:nth-of-type(1) { animation-delay: .1s; -webkit-animation-delay: .1s; }
#run_right li:nth-of-type(2) { animation-delay: .2s; -webkit-animation-delay: .2s; }
#run_right li:nth-of-type(3) { animation-delay: .3s; -webkit-animation-delay: .3s; }
#run_right li:nth-of-type(4) { animation-delay: .4s; -webkit-animation-delay: .4s; }
#run_down li:nth-of-type(9) { animation-delay: .1s; -webkit-animation-delay: .1s; }
#run_down li:nth-of-type(8) { animation-delay: .2s; -webkit-animation-delay: .2s; }
#run_down li:nth-of-type(7) { animation-delay: .3s; -webkit-animation-delay: .3s; }
#run_down li:nth-of-type(6) { animation-delay: .4s; -webkit-animation-delay: .4s; }
#run_down li:nth-of-type(5) { animation-delay: .5s; -webkit-animation-delay: .5s; }
#run_down li:nth-of-type(4) { animation-delay: .6s; -webkit-animation-delay: .6s; }
#run_down li:nth-of-type(3) { animation-delay: .7s; -webkit-animation-delay: .7s; }
#run_down li:nth-of-type(2) { animation-delay: .8s; -webkit-animation-delay: .8s; }
#run_down li:nth-of-type(1) { animation-delay: .9s; -webkit-animation-delay: .9s; }
#run_left li:nth-of-type(4) { animation-delay: .1s; -webkit-animation-delay: .1s }
#run_left li:nth-of-type(3) { animation-delay: .2s; -webkit-animation-delay: .2s; }
#run_left li:nth-of-type(2) { animation-delay: .3s; -webkit-animation-delay: .3s; }
#run_left li:nth-of-type(1) { animation-delay: .4s; -webkit-animation-delay: .4s; }
#run_up { width: 100%; height: auto; overflow: hidden; float: left; margin-top: -8px; }
#run_down { margin-top: 156px; position: absolute; width: 100%; }
#run_left { width: 15px; height: 150px; margin-left: 18px; float: left; margin-top: -8px; }
#run_left li, #run_right li { margin-left: 0; margin-top: 22px; }
#run_right { float: right; margin-right: 12px; width: 15px; height: 150px;margin-top: -8px; }
.num_box { height: 140px; width: 90%; margin-left: 5%; position: absolute;/*left:50%;margin-left:-370px;*/ z-index: 8; overflow: hidden; text-align: center; margin-top: 19px; }
.num { background: url(images/num_02.png) top center repeat-y; width: 33%; height: 150px; float: left; background-size: 50px; background-position: center 30px; }
.btn { background: url(images/btn.png) 0px 0px no-repeat; width: 210px; height: 37px; position: absolute; bottom: 0px; cursor: pointer; clear: both; background-size: cover; right: 30px; }
.xf { width: 100%; text-align: center; color: #c69504; position: absolute; bottom: 50px; font-size: 13px; }
.xf span { color: #ac0303 }
.jp { position: absolute; left: 30px; bottom: -4px; }
.jp img { width: 70px; }
.bottom_com { width: 100%; margin-top: 3px; position: relative; }
.bottom_com img { width: 100%; }
.text1 { color: #af8400; font-size: 12px; position: absolute; top: 30px; margin-left: 25px; }
.text2 { color: #af8400; font-size: 12px; position: absolute; top: 140px; margin-left: 25px; }
@media screen and (min-width:410px) {
	/*plus*/
	.lhj_con { height: 275px; }
	#run_right { margin-right: 14px; }
	#run_left { margin-left: 19px; }
	#run_down { margin-top: 175px; }
	.marquee { margin-top: 16px; }
	#run_left li, #run_right li { margin-top: 26px; }
	#run_up li, #run_down li { margin-left: 7.8% }
	.num_box { margin-top: 26px; }
	.text1 { top: 40px; }
	.text2 { top: 160px; }
}
@media screen and (max-width:370px) {
	/*vivo*/
	.lhj_con { height: 245px; }
	#run_up { margin-top: 2px; float: left; }
	#run_right { margin-right: 11px; }
	#run_left { margin-left: 16px; }
	#run_down { margin-top: 162px; }
	.marquee { margin-top: 14px; }
	.num_box { margin-top: 18px; }
	.text1 { top: 35px; }
	.text2 { top: 135px; }
}

#Marquee_x { overflow:hidden;  } 
#Marquee_x ul li ,#Marquee_x ul li div{ float:left;line-height:25px;overflow:hidden} /* 横向滚动必须让所有li左浮动 */
#Marquee_x ul li div{ float:left;line-height:25px;height:131px; width:142px; overflow:hidden}
#Marquee_x ul li div img{ border:1px solid #DADADA; width:140px; height:105px; display:block}
#Marquee_x ul li div span{ display:block;}





	</style>
	<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="js/easing.js"></script>
	<!-- <script src="js/jQuery-jcMarquee.js" type="text/javascript"></script> -->
</head>
<body >
<div class="lhj_top">
	<img src="images/lhjtop.png" class="lhj_topimg" alt=""></div>
<div class="lhj_ns" >
	
		<div id="demo" style="overflow:hidden;width:78%; margin-left: 12%;" >
			<table border=0  cellpadding=1 cellspacing=1 cellspace=0 >
				<tr>
					<td id="marquePic1">
						<table border='0' cellspacing='0'>
							<tr>
								<td>000000000000000000000000000000001</td>
								<td>2</td>
								<td>3</td>
								<td>4</td>
								<td>000000000000000000000000000000001</td>
								<td>6</td>
								<td>7</td>
								<td>8</td>
								<td>9</td>

							</tr>
						</table>
					</td>
					<td id=marquePic2 valign=top></td>
				</tr>
			</table>
		</div>


</div>
<div class="lhj_con">
	<div class="consumption ">抽奖消费了100N币</div>




	<div class="num_box">
		<div class="num"></div>
		<div class="num"></div>
		<div class="num"></div>
	</div>
	<div id="run_up">
		<li></li>
		<li></li>
		<li></li>
		<li></li>
		<li></li>
		<li></li>
		<li></li>
		<li></li>
		<li></li>
	</div>
	<div id="run_down">
		<li></li>
		<li></li>
		<li></li>
		<li></li>
		<li></li>
		<li></li>
		<li></li>
		<li></li>
		<li></li>
	</div>
	<div id="run_right">
		<li></li>
		<li></li>
		<li></li>
		<li></li>
	</div>
	<div id="run_left">
		<li></li>
		<li></li>
		<li></li>
		<li></li>
	</div>
	<div class="jp">
		<img src="images/j.png" alt=""></div>
	<div class="xf">
		您当前拥有
		<span>2045</span>
		N币，
		<span>9</span>
		N币/次
	</div>
	<div class="btn"></div>
</div>
<div class="bottom_com">
	<div class="text1">如何得大奖</div>
	<img src="images/bg.jpg" alt="">
	<div class="text2">
		游戏规则
		<br>
		1、每玩一次消费9N币,每个用户每天可以不限量参加游戏；
		<br>
		2、获奖后，游戏主办方会将游戏奖励快递给您；
		<br>3、游戏中的N币消费后不会退还。</div>
</div>










<script>



var speed=50 
marquePic2.innerHTML=marquePic1.innerHTML 
function Marquee(){ 
if(demo.scrollLeft>=marquePic1.scrollWidth){ 
demo.scrollLeft=0 
}else{ 
demo.scrollLeft++ 
} 
} 
var MyMar=setInterval(Marquee,speed) 
demo.onmouseover=function() {clearInterval(MyMar)} 
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)} 










function numRand() {
	var x = 999; //上限
	var y = 111; //下限
	var rand = parseInt(123);
	return rand;
}
var isBegin = false;
var start = true;
$(function(){
	var u = 85;//从1开始
	// var u = 83.8; //从0开始
	$('.btn').click(function(){
			

		// $('#demo').append('<li>抽中大奖</li>')
		if(isBegin) return false;
		isBegin = true;

		if (start) {
			// 消费金币效果
			$('.consumption').addClass('consumption_xf')
			setTimeout(function(){
				$('.consumption').removeClass('consumption_xf')
			},1000)
			start = false;
		}

		$(".num").css('backgroundPositionY',30);
		var result = numRand();
		// $('#res').text('摇奖结果 = '+result);
		var num_arr = (result+'').split('');
		$(".num").each(function(index){
			var _num = $(this);
			setTimeout(function(){
				_num.animate({ 
					backgroundPositionY: (u*70) - (u*num_arr[index]) //滚动个数的整数倍
				},{
					duration: 3000+index*1000,
					// duration: 6000+index*3000,
					easing: "easeInOutCirc",
					complete: function(){
						if(index==2) {
							isBegin = false;
							start = true;
						}

					

					}
				});
			}, index * 0);
		});
	});	
});






</script>
</body>
</html>